package com.ruoyi.grape.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.grape.mapper.GrapeStaffMapper;
import com.ruoyi.grape.domain.GrapeStaff;
import com.ruoyi.grape.service.IGrapeStaffService;

/**
 * 员工管理信息Service业务层处理
 * 
 * @author ld
 * @date 2023-11-18
 */
@Service
public class GrapeStaffServiceImpl implements IGrapeStaffService 
{
    @Autowired
    private GrapeStaffMapper grapeStaffMapper;

    /**
     * 查询员工管理信息
     * 
     * @param staffId 员工管理信息主键
     * @return 员工管理信息
     */
    @Override
    public GrapeStaff selectGrapeStaffByStaffId(Long staffId)
    {
        return grapeStaffMapper.selectGrapeStaffByStaffId(staffId);
    }

    /**
     * 查询员工管理信息列表
     * 
     * @param grapeStaff 员工管理信息
     * @return 员工管理信息
     */
    @Override
    public List<GrapeStaff> selectGrapeStaffList(GrapeStaff grapeStaff)
    {
        return grapeStaffMapper.selectGrapeStaffList(grapeStaff);
    }

    /**
     * 新增员工管理信息
     * 
     * @param grapeStaff 员工管理信息
     * @return 结果
     */
    @Override
    public int insertGrapeStaff(GrapeStaff grapeStaff)
    {
        return grapeStaffMapper.insertGrapeStaff(grapeStaff);
    }

    /**
     * 修改员工管理信息
     * 
     * @param grapeStaff 员工管理信息
     * @return 结果
     */
    @Override
    public int updateGrapeStaff(GrapeStaff grapeStaff)
    {
        return grapeStaffMapper.updateGrapeStaff(grapeStaff);
    }

    /**
     * 批量删除员工管理信息
     * 
     * @param staffIds 需要删除的员工管理信息主键
     * @return 结果
     */
    @Override
    public int deleteGrapeStaffByStaffIds(Long[] staffIds)
    {
        return grapeStaffMapper.deleteGrapeStaffByStaffIds(staffIds);
    }

    /**
     * 删除员工管理信息信息
     * 
     * @param staffId 员工管理信息主键
     * @return 结果
     */
    @Override
    public int deleteGrapeStaffByStaffId(Long staffId)
    {
        return grapeStaffMapper.deleteGrapeStaffByStaffId(staffId);
    }
}
